import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;

import com.swf.seed.triutil.lang.SdFileUtils;


public class Test {
	public static void main(String[] args) throws Exception {
		File userDirFile = SdFileUtils.getUserDirFile("OS_V1.0_20140815.sql");
		BufferedReader fileReader = new BufferedReader(new FileReader(userDirFile));
		String line ="";
		while ((line=fileReader.readLine())!=null){
			if (line.matches("create\\s+table.+")){
				line = line.substring(line.indexOf("table")+6).trim();
				System.out.print(line+",");
			}
		}
	}
}
